package com.sh.策略模式.strategy.impl.content;



import com.sh.策略模式.strategy.ContentTypeStrategy;

import java.util.HashMap;
import java.util.Map;

public class Content_TypeBuilder {

    public static final Map<String, ContentTypeStrategy> strategies = new HashMap<>();

    static {
        strategies.put("jpg", new JpgContentTypeStrategy());
        strategies.put("css", new CssContentTypeStrategy());
        strategies.put("js", new JsContentTypeStrategy());
        strategies.put("gif", new GifContentTypeStrategy());
        strategies.put("png", new PngContentTypeStrategy());
        strategies.put("html", new DefaultContentTypeStrategy());
    }

}
